package com.jingwee.springbootkafka.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Component;

/**
 * @author jingwei
 * @version 1.0
 * @description
 * @date 2023/8/8
 */
@Slf4j
@Component
public class KafkaBaseConsumerResult {

    @KafkaListener(topics = "local-test-result")
    public void replyingMessage(String message) {
        log.info("sendTo message is ===>>> {}", message);
    }

}
